package com.tjsinfo.tjsoa.system.listener;
import java.io.File;
import java.util.List;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import com.tjsinfo.tjsoa.common.FileManage;
public class StartListener implements ServletContextListener {

	public void contextDestroyed(ServletContextEvent arg0) {
		System.out.println("销毁");
	}
	public void contextInitialized(ServletContextEvent arg0) {
		System.out.println("系统开始启动...");
		try {
			File file=new File("C:\\tempFile");
			File[] fileList = file.listFiles();
			for (File file2 : fileList) {
				file2.delete();
			}
		} catch (Exception e) {
			System.out.println("文件整理异常!");
		}
	}

}
